import request from 'utils/request'
let config = {
    headers: {
        'Content-Type': 'application/json;charset=UTF-8' //之前说的以表单传数据的格式来传递fromdata
    }
}
const afterSale = {
    getSelectService: (data) => request.get('/p/order/afterSale/select/service', data), //获取选择订单售后服务类型页
    getSelectGoods: (data) => request.get('/p/order/afterSale/select/product', data), //获取选择订单售后商品页
    getApplyReturn: (data) => request.get('/p/order/afterSale/apply', data), // 获取订单售后申请页
    applySubmit: (data) => request.post('/p/order/afterSale/applySubmit', data, config), // 提交售后申请单
    applyCancel: (data) => request.post('/p/order/afterSale/cancel', data), // 用户撤销申请
    getUpdateApply: (data) => request.get('/p/order/afterSale/update/apply', data), // 获取修改售后申请页
    updateApplySubmit: (data) => request.post('/p/order/afterSale/updateApply/submit', data, config), // 提交修改售后申请
    getReturnGoodsLogistics: (data) => request.get('/p/order/afterSale/returnGoodsLogistics', data), // 获取买家返货物流列表
    saveReturnGoodsLogistics: (data) => request.post('/p/order/afterSale/returnGoods', data), // 买家返货填写物流单号
    UpdataReturnGoodsLogistics: (data) => request.post('/p/order/afterSale/update/returnGoods', data), // 修改买家返货物流单号
    getConsultRecord: (data) => request.post('/p/order/afterSale/consultRecord', data) // 查看协商记录
}
export { afterSale }
